﻿@using System.Xml.Linq;
@using System.Linq;
@using perfume.Models.DB;
@{
    Product_repository product_db = new Product_repository();
    var Category = product_db.GetCategory();
}
<div id="menu">
    <ul class="menu">
        <li><a href="../../Home/Index" class="parent"><span>Home</span></a> </li>
        @if (@Context.User.Identity.Name == "admin")
        { 
            <li><a href="../../Admin/Index"><span>Admin</span></a></li>
        
        }
        <li><a href="#"><span>Category</span></a>
            <div>
                <ul>
                    @foreach (var item in Category)
                    {
                        <li><a href="/Category/Details/@item.category_id"><span>@item.category_name</span></a>
                        </li>
                    }
                </ul>
            </div>
        </li>
        <li><a href="../../Home/Help"><span>Help</span></a></li>
        <li class="last"><a href="../../Home/Contacts"><span>Contacts</span></a></li>
    </ul>
    <div id="index_search">
        @using (Html.BeginForm("Search", "Home", FormMethod.Get, new { id="temp"}))
        {
              @Html.TextBox("id")
            //<input id="txt_search" type="text" />                                       
            <input type="submit" value="Search" />
            
        }
    </div>
</div>
